#pragma once
#include <iostream>
#include <string>
#include <sstream>
#include <vector>
#include "Result.h"
using namespace std;
class Course
{
private:
	vector <Result> results;
	string courseName;
public:
	Course()
	{
		this->courseName = "";
	}
	Course(string courseName)
	{
		this->courseName = courseName;
	}
	string List()
	{
		ostringstream oss;
		for(auto &r : results)
		{
			oss << r.GetGradeResult() << endl;
		}
		return oss.str();
	}
	void AddResultToCourse(Result result)
	{
		results.push_back(result);
	}
	void SetCourseName(string courseName)
	{
		this->courseName = courseName;
	}
	string GetCourseName()
	{
		return this->courseName;
	}
	vector<Result>& GetResults()
	{
		return this->results;
	}
	~Course(void);
};

